package com.xindacloud.sms.adapter.utils;

import java.util.UUID;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CommonUtils {

    public static boolean isMobile(String mobiles) {
        Pattern p = Pattern.compile("^((\\+86)|(86))?[1][3456789][0-9]{9}$");
        Matcher m = p.matcher(mobiles);
        return m.matches();
    }

    public static String buildRandomUUID() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
}
